package com.hhf.demo_02;

/**
 * @Author: 黄恒锋
 * @DateTime: 2024/5/11 18:17
 * @Description: TODO
 */
public class App {

    public static void main(String[] args) {
        ThreadDemo2 threadDemo2 = new ThreadDemo2();
        Thread t1 = new Thread(threadDemo2);
        Thread t2 = new Thread(threadDemo2);
        t1.setName("线程1");
        t2.setName("线程2");
        t1.start();
        t2.start();
    }
}
